<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRandAdsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rand_ads', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 50)->comment('名称');
            $table->string('adurl', 300)->comment('广告url');
            $table->string('location', 300)->comment('地区');
            $table->date('sdate')->comment('开始日期');
            $table->date('edate')->comment('结束日期');
            $table->time('stime')->comment('开始时间');
            $table->time('etime')->comment('结束时间');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('rand_ads');
    }
}
